package org.chen.common.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.chen.common.table.TableItem;

import java.io.Serializable;
import java.util.List;

/**
 * 预下单(旅游)请求对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "TravelOrderRequest对象", description="预下单（旅游）请求对象")
public class TravelOrderRequest implements Serializable {
    private String content;
    @NotBlank(message = "预下单描述不能为空")
    private String desc;
    @NotBlank(message = "预下单电子邮箱不能为空")
    private String email;
    @NotBlank(message = "同意政策")
    private boolean agree;
    @NotBlank(message = "预下单电话不能为空")
    private String mobile;
    @NotBlank(message = "预下单姓名不能为空")
    private String name;

    @Schema(description = "订单列表")
    private List<TableItem> tabel;
}
